package com.atguigu.spzx.cloud.api.client;

import com.atguigu.spzx.cloud.model.entity.User;
import org.springframework.stereotype.Component;

/**
 * @Author ChenXing
 * @Description
 * @Create 2024/7/25 19:45
 */

public class UserFeignClientFallback implements UserFeignClient {
    @Override
    public User findUserById(Long userId) {
        System.out.println("此路不通，绕道而行");
        // 返回一个兜底值
        return new User();
    }
}
